Skip to content

Conversation

@sebastian-peter
Copy link
Member

@sebastian-peter sebastian-peter commented Oct 29, 2025

This PR introduces EnergyBoundariesFlexOptions, which separates the flex options from the optimization logic.

Also fixes an erroneous soft constraint penalty calculation.

Resolves #1572

@sebastian-peter sebastian-peter added this to the Version 4.1 milestone Oct 29, 2025
@sebastian-peter sebastian-peter self-assigned this Oct 29, 2025
@sebastian-peter sebastian-peter added the enhancement New feature or request label Oct 29, 2025
@sebastian-peter sebastian-peter marked this pull request as ready for review October 30, 2025 16:55
@sebastian-peter sebastian-peter requested review from danielfeismann and staudtMarius and removed request for danielfeismann October 30, 2025 16:55
@sebastian-peter sebastian-peter force-pushed the sp/#1572-energy-limit-optimization branch from 715bb5a to 10f59f6 Compare November 3, 2025 23:30
# Conflicts:
#	src/test/scala/edu/ie3/simona/model/participant/PvModelSpec.scala
#	src/test/scala/edu/ie3/simona/model/participant/WecModelSpec.scala
@sebastian-peter sebastian-peter marked this pull request as draft November 5, 2025 15:12
Copy link
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments from my side, I'm happy to discuss them

Comment on lines +33 to +34
* @param sampleTime
* The amount of time between the steps.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be the unit to which you convert discrete time events? It might be helpful to provide some additional explanatory comments on this in general here or in the method header above.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what you mean with "unit"... It's just the amount of time between time steps. Time steps are defined in line 28-29 above. But maybe I can make the description more clear?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit was the wrong term... interval would it have been, sorry.

So, just for my understanding: all discrete time events we have will be sampled to this interval, right? Perhaps we can add this in the method header (line 31) or line 34? E.g. This requires to convert the time series to fit into the set sampleTime. or similar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The energy boundaries do not have to be sampled in this exact resolution, no. Although it's more efficient if that happens, of course.

@sebastian-peter sebastian-peter marked this pull request as ready for review November 6, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement energy limit flex options and adapt optimization

3 participants